
/*
 *  This is the base class for tree, this will be extended by other tree structure table
 *  @Author:	James Teng
 *  @Create Date:	 22/02/2011
 */
package com.advertise.model;

public class TreeNode {
	private int id;
	private String menu;
	private int parent;
	private int level;
	
	public TreeNode(){
		
	}
	
	public TreeNode(int nodeId,String nodeText,int parentNode,int treeLevel){
		this.id	= nodeId;
		this.menu = nodeText;
		this.parent	=	parentNode;
		this.level	=	treeLevel;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMenu() {
		return menu;
	}

	public void setMenu(String menu) {
		this.menu = menu;
	}

	public int getParent() {
		return parent;
	}

	public void setParent(int parent) {
		this.parent = parent;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}
	
	
	
}
